package com.example.order.entity;

import java.io.Serializable;

/**
 * @Author: songyahui
 * @Date: 2020/11/6 20:59
 * @Version 1.0
 */
public class Result implements Serializable {
    private Boolean success;
    private String message;
    private String code;

    public Result(){

    }

    public Result(Boolean success,String message){
        this.success = success;
        this.message = message;
    }

    public Boolean getSuccess(){
        return success;
    }

    public void setSuccess(Boolean success){
        this.success = success;
    }

    public String getMessage(){
        return message;
    }

    public void setMessage(String message){
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "Result{" +
                "success=" + success +
                ", message='" + message + '\'' +
                ", code='" + code + '\'' +
                '}';
    }
}
